const mutations = {
    login(state, sex) {
        state.hasLogin = true
        state.sex = sex;
    },
    logout(state) {
        state.hasLogin = false
        state.sex = 0
    },
    initWebsocket(state, ws) {
        state.websocket = ws
    }
}

export default mutations
